package org.osami.gateway.sensor;

import org.osgi.util.measurement.Measurement;

/**
 */
public interface SenseData {

    String DEFAULT_DATA_KEY = "sensor-data";

    Measurement toMeasurement();

    /**
     * @return Unit name (e.g. lux, Volt etc. )
     */
    String getUnit();

    /**
     * @return The data value.
     */
    Double getValue();

    /**
     * @return The data timestamp in ms.
     */
    Long getTimeStamp();

    /**
     * @return The id of the sensor which have produce this data.
     */
    String getSenseId();

    /**
     * @return The sensor type.
     */
    String getType();
}
